﻿@model CmsAdminFileItem

@{
    ResFile = "cms_Common";
}

@if (!string.IsNullOrEmpty(Model.RootDirectory))
{
<ul class="jqueryFileTree">    
    <li class="directory collapsed">
        <a href="#">@Model.RootDirectory</a>    
        @if (Model.NestedFileItems != null)
        {
            @Html.Partial("FileSystemViewItem", Model.NestedFileItems)
        }    
    </li>  
</ul>
}
else if (Model.NestedFileItems != null)
{
    @Html.Partial("FileSystemViewItem", Model.NestedFileItems)
}
<button class="b-button b-button_small hideFileDialog hide">@_("Cancel")</button>